home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / Standard Mail / CollaboDraw / mytypes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-23  |  2.2 KB  |  136 lines  |  [TEXT/MPS ]

  1. #ifndef __WINDOWS__
  2. #include <Windows.h>
  3. #endif
  4.  
  5. #ifndef __FILES__
  6. #include <Files.h>
  7. #endif
  8.  
  9. #ifndef __PRINTING__
  10. #include <Printing.h>
  11. #endif
  12.  
  13. #ifndef __OCE__
  14. #include <OCE.h>
  15. #endif
  16.  
  17. #ifndef __OCESTANDARDMAIL__
  18. #include <OCEStandardMail.h>
  19. #endif
  20.  
  21. typedef short WindowKind;
  22.  
  23. typedef struct WInfo WInfo,*WInfoPtr,**WInfoHndl;
  24. typedef void *(*MsgProc)(WindowPtr window,WInfoPtr info,void *data);
  25.  
  26. struct WInfo {
  27.  
  28.     WindowPtr window;
  29.     
  30.     long    refCount;    // to uniquely identify the windows
  31.     
  32.     FSSpec    fileSpec;
  33.     short    topIndent;
  34.     short    leftIndent;
  35.     
  36.     void    *data;
  37.     
  38.     MsgProc    m_idle;
  39.     MsgProc    m_fixCursor;
  40.     MsgProc    m_activate;
  41.     MsgProc    m_deactivate;
  42.     MsgProc    m_update;
  43.     MsgProc    m_key;
  44.     MsgProc    m_resize;
  45.     MsgProc    m_click;
  46.     MsgProc    m_destroy;
  47.     MsgProc    m_undo;
  48.     MsgProc    m_cut;
  49.     MsgProc    m_copy;
  50.     MsgProc    m_paste;
  51.     MsgProc    m_clear;
  52.     MsgProc    m_print;
  53.     MsgProc    m_pageSetup;
  54.     MsgProc    m_save;
  55.     MsgProc    m_load;
  56.     MsgProc    m_event;
  57.     MsgProc m_ctrlHit;
  58.     MsgProc m_selectAll;
  59.     MsgProc m_group;
  60.     MsgProc m_unGroup;
  61.     
  62.     THPrint    printRecord;
  63.     Boolean    saved;
  64.     Boolean changed;
  65.     short    fRefNum;
  66.     short    resRefNum;
  67.     
  68.     void    *otherData[8];
  69.     Boolean    otherFlags[8];
  70. };
  71.  
  72.  
  73. typedef struct ShapeList ShapeList, *ShapeListPtr;
  74. typedef struct DigSigList DigSigList, *DigSigListPtr;
  75.  
  76. struct ShapeList {
  77.  
  78.     // things to sign
  79.     
  80.     short shapeType;
  81.     Point anchor;
  82.     Point destination;
  83.     
  84.     // things to not sign
  85.     
  86.     Boolean isSigned;
  87.     Boolean selected;
  88.     short signatureID;    
  89.     ShapeListPtr next;
  90.     ShapeListPtr subList;
  91.     DigSigListPtr digSig;
  92. };
  93.  
  94. #define    kShapeSignLength    (sizeof(short)+sizeof(Point)+sizeof(Point))
  95.  
  96. struct DigSigList {
  97.     ShapeListPtr    shape;
  98.     short            signatureID;
  99.     Boolean            inTemp;
  100.     Boolean            shouldDelete;
  101.     DigSigListPtr    next;
  102. };
  103.  
  104.  
  105.  
  106. struct ControlHitMessage {
  107.     short part;
  108.     ControlHandle control;
  109.     EventRecord *ev;
  110. };
  111.  
  112. typedef struct ControlHitMessage ControlHitMessage;
  113.  
  114.  
  115. struct UndoData {
  116.     WindowPtr window;
  117.     long windowRefCount;
  118.     ShapeList theShape;
  119. };
  120.  
  121. typedef struct UndoData UndoData, *UndoDataPtr;
  122.  
  123.  
  124. struct MyPreferences {
  125.     short            version;
  126.     SMPCloseOptions closeOptions;
  127.     SMPSendOptions    sendOptions;
  128.     SMPSendFormat    sendFormat;
  129.     Boolean            closeOnSend;
  130.     Boolean            closeOptionsDialog;
  131.     Boolean            expandOnCreate;
  132.     Boolean            expandOnOpen;
  133. };
  134.  
  135. typedef struct MyPreferences MyPreferences, *MyPreferencesPtr;
  136.